package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 会员转入资金实体
 * @author Frzhao
 *
 */
@Entity
public class MemberTransinList implements Serializable {
	
	/**
	 * ID
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	/**
	 * 用户名
	 */
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
    /**
     * 收入金额
     */
	@Column(nullable=false)
	private double transinAmount;
	
	/**
	 * 转账账户
	 */
	@ManyToOne
	@JoinColumn(name="trans_username")
	private MemberBaseInfo transUsername;
	
	/**
	 * 转账时间
	 */
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date transTime;
	
	/**
	 * 转入后电子钱包余额
	 */
	@Column(nullable=false)
	private double walletRemain;
	
	
	private String transRemark;
	
	private String transSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public double getTransinAmount() {
		return transinAmount;
	}

	public void setTransinAmount(double transinAmount) {
		this.transinAmount = transinAmount;
	}

	public MemberBaseInfo getTransUsername() {
		return transUsername;
	}

	public void setTransUsername(MemberBaseInfo transUsername) {
		this.transUsername = transUsername;
	}

	public Date getTransTime() {
		return transTime;
	}

	public void setTransTime(Date transTime) {
		this.transTime = transTime;
	}

	public double getWalletRemain() {
		return walletRemain;
	}

	public void setWalletRemain(double walletRemain) {
		this.walletRemain = walletRemain;
	}

	public String getTransRemark() {
		return transRemark;
	}

	public void setTransRemark(String transRemark) {
		this.transRemark = transRemark;
	}

	public String getTransSpare() {
		return transSpare;
	}

	public void setTransSpare(String transSpare) {
		this.transSpare = transSpare;
	}
	
	
}
